<%--                                                                       --%>
<%-- Copyright (c) 2001-2004 BroadVision, Inc.  All rights reserved.       --%>
<%--                                                                       --%>
<%-- This software is copyrighted. Under the copyright laws, this software --%>
<%-- may not be copied, in whole or in part, without prior written consent --%>
<%-- of BroadVision, Inc. or its assignees. This software is provided      --%>
<%-- under the terms of a license between BroadVision and the recipient,   --%>
<%-- and its use is subject to the terms of that license.                  --%>
<%--                                                                       --%>
<%-- This software may be protected by one or more U.S. and International  --%>
<%-- patents.  Certain applications of BroadVision One-To-One software are --%>
<%-- covered by U.S. patent 5,710,887.                                     --%>
<%--                                                                       --%>
<%-- TRADEMARKS: BroadVision and BroadVision One-To-One are registered     --%>
<%-- trademarks of BroadVision, Inc., in the United States and the         --%>
<%-- European Community, and are trademarks of BroadVision, Inc., in other --%>
<%-- countries.  The BroadVision logo, is a trademark of BroadVision,      --%>
<%-- Inc., in the United States and other countries. Additionally, IONA    --%>
<%-- and Orbix are trademarks of IONA Technologies, Ltd.  RSA, MD5, and    --%>
<%-- RC2 are trademarks of RSA Data Security, Inc.                         --%>
<%--                                                                       --%>

<%@ page import =  "com.broadvision.web.util.ViewDynaBean,
		    org.apache.struts.validator.DynaValidatorForm,
                    org.apache.commons.beanutils.PropertyUtils,
                    java.util.List"
%>

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

<script language="JavaScript">
function closeWindow() {
  self.close();
}
</script>
      <!-- Zone 5 starts here.  -->
      <table class="zoneFive" width="100%" border="0" cellspacing="0" cellpadding="0" summary="content area">
        <tr>
          <td valign="top" width="100%">
            <div class="generalWrapRight">
              <html:button property="closeWinBtn" styleClass="inputButton" onclick="javascript:closeWindow()">
                <bean:message key="button.close"  bundle="bp.messages"/>
              </html:button>
            </div> 			
            <!-- Start Result List here -->
            <div class="pageSubtitle">
              <span class="left"><bean:write name="taskCandidatesView" property="definedPerformer" />-<bean:write name="taskCandidatesView" property="candidateCount" /></span>
              <span class="right">&nbsp;</span>
            </div> 

            <table class="dataTable" border="0" cellspacing="1" cellpadding="2" summary="candidates list table" width="100%">
              <tr class="listHeader">
                <th id="Name" align="left"><bean:message key="bp.process.task.candidateName" bundle="bp.messages"/></th>
                <th id="FullName" align="left"><bean:message key="bp.process.task.candidateFullName" bundle="bp.messages"/></th>
              </tr>

              <logic:empty name="taskCandidatesView" property="candidates">
                <tr class="listEven">
                  <td colspan=2 align="center"><bean:message key="bp.process.task.noCandidate" bundle="bp.messages"/></td>
                </tr>
              </logic:empty>
              <logic:notEmpty name="taskCandidatesView" property="candidates">
                <logic:iterate id="row" name="taskCandidatesView" property="candidates" indexId="index">
                  <tr class='<%= index.intValue() % 2 == 0 ? "listEven" : "listOdd"%>'>
                    <td headers="Name">
                      <bean:write name="row" property="candidate" />
                    </td>
                    <td headers="FullName">
                      <bean:write name="row" property="candidateFullName" />
                    </td>
                  </tr>
                </logic:iterate>
              </logic:notEmpty>
            </table>
            <!--end result list here-->
          </td>
        </tr>
      </table>
      <!--end zone 5 content here -->

